<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------
// | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------

namespace app\goods\validate;

use think\Validate;

/**
 * 价格
 */
class Price extends Validate
{
    //定义验证规则
    protected $rule = [       
        'pricegroupname|名称'    => 'require',
        'createname|添加人'      => 'require',
        'start_time|生效日期'    => 'require',
        'end_time|结束日期'      => 'require',
    ];

    //定义验证提示
    protected $message = [
        'goodsname.require'    => '请输入名称',
        'createname.require'   => '请输入添加人',
        'create_time.require'  => '请输入生效日期',
        'end_time.require'     => '请输入结束日期',
    ];
}
